package com.tepth.busfix.main.login;

import com.tepth.busfix.base.BaseModel;
import com.tepth.busfix.base.BasePresenter;
import com.tepth.busfix.base.BaseView;
import com.tepth.busfix.bean.reponse.User;
import com.tepth.busfix.network.ApiModel;

import io.reactivex.Observable;

/**
 * Created by 张宇 on 2017/3/13.
 */

 class LoginContract {

    interface View extends BaseView {
        String getAccount();
        String getPassword();

        void showUser(User user);
    }

    interface Model extends BaseModel {
        Observable<ApiModel<User>> login(String account,String password);
    }

    abstract static class Presenter extends BasePresenter<Model, View> {

        @Override
        public void onStart() {

        }
        abstract void login();
    }
}